using net_work.Common.Request;
using net_work.Common.Result;
using net_work.Data.DTO.Sys;
using net_work.Data.Entity.Sys;
using net_work.Data.VO.Sys;

namespace net_work.IRepository.Sys;

public interface IStudentRepository : IRepository<Student>
{
    /// <summary>
    /// 插入学生
    /// </summary>
    /// <param name="studentAddRequest">插入学生</param>
    /// <returns>学生ID</returns>
    Task<long> InsertAsync(StudentAddRequest studentAddRequest);

    /// <summary>
    /// 更新学生信息
    /// </summary>
    /// <param name="studentUpdateRequest">更新学生信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(StudentUpdateRequest studentUpdateRequest);

    /// <summary>
    /// 获取学生列表
    /// </summary>
    /// <param name="request">分页请求</param>
    /// <returns>学生列表</returns>
    Task<PagedResult<StudentResult>> GetStudentPagedAsync(PagedRequest request);
}